<!DOCTYPE html>
<html>
<body>
<input type="range" id="test" value="100" min="0" max="200">
<input type="range" id="test2" value="50" min="0" max="100">
<script>
var test = document.getElementById("test");
var test2 = document.getElementById("test2");
test.offsetWidth; // Force layout.
test2.offsetWidth;
test.min = 80;
test.max = 140;
test2.max = 150;
</script>
</body>
</html>
